Translate a PIN and PIN Length

Command:

Translate a PIN and/or PIN length from encryption under the LMK pair held in “key change storage” to encryption under LMK pair 02-03. Also, translate the PIN length if a new value has been selected.

Notes:

The command can be used to translate the PIN length only. In this case, load the same LMKs to “key change storage” that are loaded as the current LMK.

The PIN length is L2N for PIN encryption algorithm A, and L2H for PIN encryption algorithm B, as selected by the CS (Configure Security) console command.

 

Field

Length & Type

Details

COMMAND MESSAGE

Message header

m A

(Subsequently returned to the Host unchanged).

Command code

2 A

Value BG.

Account number

12 N

The 12 right-most digits of the account number, excluding the check digit.

PIN

L1 N or L1 H

The PIN encrypted under the LMK pair in “key change storage”, where L 1 is the old encrypted PIN length.

End message delimiter

1 C

Optional. Must be present if a message trailer is present. Value X’19.

Message trailer

n A

Optional. Maximum length 32 characters.

RESPONSE MESSAGE

Message header

m A

Returned to the Host unchanged.

Response code

2 A

Value BH.

Error code

2 N

00 : No errors

13 : LMK error; report to supervisor

14 : Error in PIN from Host database

15 : Error in input data

PIN

L2 N or L2 H

The PIN encrypted under new LMK pair 02-03, where L2 is the new encrypted PIN length.

End message delimiter

1 C

Present only if present in the command message. Value X’19.

Message trailer

n A

Present only if present in the command message. Maximum length 32 characters.